﻿<%@ Page Language="c#" CodeBehind="FlowTemplate.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.DocumentFlowPages.FlowTemplatePage" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
  <title>文档流转 - 拟稿箱</title>
  <uds:Style runat="server" Href="~/css/BasicLayout.css" />
</head>
<body>
  <form method="post" runat="server">
    <uds:PageTitle runat="server" HintImage="~/DataImages/DocFlow.gif" Title="文档流转">
      <uds:RedirectButton runat="server" RedirectUrl="DraftList.aspx" Text="列表" CssClass="redbuttoncss optionbutton" />
    </uds:PageTitle>
    <div>
      <table cellspacing="0" cellpadding="0" border="0" style="margin-top: 8px;">
        <tr>
          <td class="unselectedTab"><a href="ListDocument.aspx?DisplayType=<%= (int)DocumentPageDisplayType.MyPostil %>" class="Newbutton">我的批阅</a></td>
          <td class="unselectedTab"><a href="ListDocument.aspx?DisplayType=<%= (int)DocumentPageDisplayType.MyDocument %>" class="Newbutton">我的申请</a></td>
          <td class="unselectedTab"><a href="ListDocument.aspx?DisplayType=<%= (int)DocumentPageDisplayType.Postiled %>" class="Newbutton">已经批阅</a></td>
          <td class="selectedTab"><a href="javascript:void(0);" class="Newbutton">拟稿箱</a></td>
          <%if (ManageFlow)
            {%>
          <td class="unselectedTab"><a href="ListView.aspx" class="Newbutton">流程管理</a></td>
          <%}%>
        </tr>
      </table>
    </div>
    <uds:UDSDataGrid ID="dgFlowList" runat="server" OnPageIndexChanged="DataGrid_PageChanged" >
      <Columns>
        <asp:TemplateColumn HeaderText="ID">
          <HeaderStyle Width="2%" />
          <ItemTemplate>
            <asp:CheckBox ID="Flow_ID" runat="server" />
          </ItemTemplate>
        </asp:TemplateColumn>
        <asp:HyperLinkColumn DataNavigateUrlField="Flow_ID" DataNavigateUrlFormatString="NewDocument.aspx?FlowID={0}" DataTextField="Flow_Name" HeaderText="流程名">
          <HeaderStyle Width="33%" />
          <ItemStyle Width="33%" />
        </asp:HyperLinkColumn>
        <asp:TemplateColumn HeaderText="流程图例">
          <HeaderStyle HorizontalAlign="Center" Width="10%" />
          <ItemStyle HorizontalAlign="Center" />
          <ItemTemplate>
            <a href="DisplayFlow.aspx?FlowID=<%#DataBinder.Eval(Container,"DataItem.Flow_ID")%>">图例</a>
          </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="发起步骤">
          <ItemTemplate>
            <a href='DisplayTacheMember.aspx?StepID=<%#DataBinder.Eval(Container, "DataItem.Step_ID")%>&FlowID=<%#DataBinder.Eval(Container, "DataItem.Flow_ID")%>&ReturnPage=4'><%# DataBinder.Eval(Container, "DataItem.StepName") %> </a>
          </ItemTemplate>
        </asp:TemplateColumn>
        <asp:HyperLinkColumn DataNavigateUrlField="Style_ID" DataNavigateUrlFormatString="DisplayStyle.aspx?StyleID={0}" DataTextField="Style_Name" HeaderText="表格/附件">
          <HeaderStyle HorizontalAlign="Center" Width="15%" />
          <ItemStyle HorizontalAlign="Center" />
        </asp:HyperLinkColumn>
        <asp:BoundColumn DataField="LastUseDate" HeaderText="最后使用日期">
          <HeaderStyle Width="15%" />
        </asp:BoundColumn>
        <asp:BoundColumn DataField="UsedTimes" HeaderText="使用次数">
          <HeaderStyle Width="10%" />
        </asp:BoundColumn>
      </Columns>
    </uds:UDSDataGrid>
  </form>
</body>
</html>
